package com.suneee.spec.entity;

import java.io.Serializable;
import java.util.List;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;
import com.suneee.store.entity.EnterpriseSpec;

@Entity
@Table(name = "t_spec")
@SuppressWarnings("serial")
public class Spec implements Serializable {
	/**
	 * 规格id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "spec_id", nullable = false)
	private int specId;

	/**
	 * 类目
	 */
	@Column(name = "category_code", nullable = false)
	private String categoryCode;

	/**
	 * 规格名称
	 */
	@Column(name = "name", nullable = false)
	private String name;

	/**
	 * 排序
	 */
	@Column(name = "order_number", nullable = false)
	private int orderNumber;
	
	/**
	 * 类目名称
	 */
	@Transient
	private String categoryNames;
	
	@Transient
	private List<EnterpriseSpec> enterpriseSpecList;

	public int getSpecId() {
		return specId;
	}

	public void setSpecId(int specId) {
		this.specId = specId;
	}

	public String getCategoryCode() {
		return categoryCode;
	}

	public void setCategoryCode(String category_code) {
		this.categoryCode = category_code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getCategoryNames() {
		return categoryNames;
	}

	public void setCategoryNames(String categoryNames) {
		this.categoryNames = categoryNames;
	}

	public List<EnterpriseSpec> getEnterpriseSpecList() {
		return enterpriseSpecList;
	}

	public void setEnterpriseSpecList(List<EnterpriseSpec> enterpriseSpecList) {
		this.enterpriseSpecList = enterpriseSpecList;
	}

	
}